package com.erp.itm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.itm.dao.DeviceAmountTwoDao;
import com.erp.itm.domain.DeviceAmountTwoDO;
import com.erp.itm.service.DeviceAmountTwoService;

@Service
public class DeviceAmountTwoServiceImpl implements DeviceAmountTwoService {
	@Autowired
	private DeviceAmountTwoDao deviceAmountTwoDao;
	
	@Override
	public DeviceAmountTwoDO get(Long id){
		return deviceAmountTwoDao.get(id);
	}
	
	@Override
	public List<DeviceAmountTwoDO> list(Map<String, Object> map){
		return deviceAmountTwoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return deviceAmountTwoDao.count(map);
	}
	
	@Override
	public int save(DeviceAmountTwoDO deviceAmountTwo){
		return deviceAmountTwoDao.save(deviceAmountTwo);
	}
	
	@Override
	public int update(DeviceAmountTwoDO deviceAmountTwo){
		return deviceAmountTwoDao.update(deviceAmountTwo);
	}
	
	@Override
	public int remove(Long id){
		return deviceAmountTwoDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return deviceAmountTwoDao.batchRemove(ids);
	}

	@Override
	public DeviceAmountTwoDO getProjectId(Long id) {
		return deviceAmountTwoDao.getProjectId(id);
	}

}
